<template>
  <div>
    <h3>InjectProps 数组</h3>
    <span v-for="(item, index) in nameArray" :key="index">
      {{ index + item }},
    </span>
    <h3>InjectProps 对象</h3>
    <span> {{ nameObj.name + nameObj.id }} </span>
  </div>
</template>
<script lang="ts">
import { defineComponent, inject, ref } from 'vue'
const app = {
  name: 'InjectProps',
  props: {
    nameArray: {
      type: Array,
      default: []
    },
    nameObj: {
      type: Object,
      default: {}
    }
  }
  // setup() {}
}
export default app
</script>
